<!DOCTYPE html>
<html lang="zh">
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>工作日志</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>

    <link rel="stylesheet" href="/css/skin.css">

    <!--编辑器-->
    <link rel="stylesheet" href="/css/froala_editor.min.css" />
    <link rel="stylesheet" href="/css/froala_editor.pkgd.min.css" />
    <link rel="stylesheet" href="/css/bootstrapValidator.min.css" />
<!--    <link rel="stylesheet" href="/css/situationAware/spiderDataForm.css">-->
</head>
<body>

<div class="container-fluid p-t-15">
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header">
                    <h4></h4>
<!--                    <div class="btn-group bianji" style="display: flex;">-->
<!--                        &lt;!&ndash; 1为用户模块-公告查看 没有编辑功能&ndash;&gt;-->
<!--                        <input type="hidden" id="type" th:value="${type}">-->
<!--                        <div th:if=" ${type} != '1'">-->
<!--                             <span style="display:inline-block;margin-right: 20px;border-bottom: 1px solid #33cabb;color: #33cabb;"-->
<!--                                   id="editBtn" onclick="editFormFun()">编辑</span>-->
<!--                        </div>-->
<!--                        <span style="display:inline-block;margin-right: 20px; border-bottom: 1px solid #33cabb;color: #33cabb;"-->
<!--                              id="saveBtn" onclick="saveEditAnnounce()">保存</span>-->
<!--                        <span id="cancelBtn" onclick="cancelEditAnnounce();">取消</span>-->
<!--                    </div>-->
                </div>
                <!-- 首页公告表格 -->
                <div id="editForm" class="card-body" style="padding: 0 156px; margin-top: 20px;line-height: 36px;text-align: center;">
                    <h4 class="logName"></h4>
                    <div style="display: flex;justify-content: center;color: #ccc;font-size: 12px;">
                        <div style="margin-right: 20px;">所有人：<span class="userName"></span></div>
                        <!--<div style="margin-right: 20px;">发布部门：<span th:text="${dept}"></span></div>-->
                        <div style="margin-right: 20px;">创建时间：<span class="createTm"></span></div>

                        <div style="margin-right: 20px;">日志类型：<span class="logType"></span></div>
                        <div style="margin-right: 20px;">客户名称：<span class="customerName"></span></div>
                    </div>
                    <div class="container-fuwenben logContent" ></div>

                </div>

            </div>
        </div>
    </div>
</div>



</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<script src="/js/crm/common/city.js"></script>
<script src="/js/crm/common/common.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>

<script type="text/javascript" src="/js/froala_editor.min.js"></script>
<script type="text/javascript" src="/js/froala_editor.pkgd.min.js"></script>

<script type="text/javascript" src="/js/bootstrapValidator.min.js"></script>

<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/worklog/user/userWorkLogView.js"></script>
<script>
    var logId=location.search.split("=")[1]
    console.log(logId)
    $.ajax({
        url:"/workLog/getLogById/"+logId,
        type: 'get',
        success:function(res){
            if(res.code==='000000'){
                let html=''
                $(".logName").html(res.data.logName)
                $(".userName").html(res.data.userName)
                $(".createTm").html(res.data.createTm)
                $(".logContent").html(res.data.logContent)
                switch(res.data.logType){
                    case 0:
                        html='无'
                        break;
                    case 1:
                        html='客户落实'
                        break;
                    case 2:
                        html='日常沟通'
                        break;
                    case 3:
                        html='需求挖掘'
                        break;
                    case 4:
                        html='会员维护'
                        break;
                    case 5:
                        html='促单'
                        break;
                }
                $(".logType").html(html)
                $(".customerName").html(res.data.customerName)
            }else{

            }
        },
    })
</script>
</html>